﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Restraurantinformation.aspx.vb" Inherits="Assignment2_WebAppDevelopment.Restraurantinformation" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Restraurant Information</title>
           <p><h1>Top 5 Restraurants - Details</h1></p>
</head>
<body>
    <form id="form1" runat="server">
    <div>




    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="RestraurantName" HeaderText="RestraurantName" 
                SortExpression="RestraurantName" />
            <asp:BoundField DataField="Description" HeaderText="Description" 
                SortExpression="Description" />
            <asp:BoundField DataField="Picture" HeaderText="Picture" SortExpression="Picture" />
        </Columns>
    </asp:GridView>

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:RestraurantConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:RestraurantConnectionString.ProviderName %>" 
        SelectCommand="SELECT [RestraurantName], [Description], [Picture] FROM [Londonrestraurants] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="1" Name="ID" QueryStringField="ID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

    </div>
    </form>
</body>
</html>
